<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>航班安排</title>
        <script type="text/javascript" src="<%=basePath%>/js/jquery-1.3.1.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/calendar/calendar.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/calendar/calendar-setup.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/calendar/lang/calendar-zh_CN.js"></script>
		<script type="text/javascript" src="<%=basePath%>js/jquery.validate.js"></script>
		<script type="text/javascript" charset="UTF-8" src="<%=basePath%>js/messages_cn.js"></script>
  		<link rel="stylesheet"  href="<%=basePath%>js/calendar/skins/aqua/theme.css"/>
  		<script type="text/javascript">
  			$(function() {
  				$("#arrangeFlightForm").validate({
  					rules:{
  						"flightArrange.startDate":{
  							required:true
  						},
  						"flightArrange.ticketsNum":{
  							required:true
  						}
  					}
  				});
  	  		}) ;
  		</script>

  </head>
  
  <body  bgcolor="#D6DFF7">
    <table height="400" width="100%" border="0" align="center" cellpadding="1"
			cellspacing="0" class="TABLELIST"  >
			<tr bgcolor="#DEE5FA" >
				<td align="center" valign="top" >
				  	<form action="ArrangeInfo!FlightArrangeInput" method="post" id="arrangeFlightForm">
				  			<table width="100%" border="0" cellpadding="1" cellspacing="0"
							class="" bgcolor="#DEE5FA" >
							 <tr>
			                   <td>&nbsp;</td>
		                     </tr>
							<tr  bgcolor="#799AE1" height="50" >
								<td colspan="2" align="center" style="font-size: 16px">
									<font color="#874B46" size="4pt">航班安排</font>
								</td>
							<tr>
								<td width="42%" align="right" height="50" >
									航班编号：&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									<select name="flightArrange.flight.id">
										<s:iterator value="flightList">
											<option value="<s:property value="id"/>"><s:property value="flight_name"/></option>
										</s:iterator>
									</select>
								</td>
							</tr>
							<tr>
								<td width="42%" align="right" height="50" >
									起飞时间：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flightArrange.startDate" id="flightarrange.startDate" type="text"
										size="20" readonly="readonly" style="width:150px; height:26px;" />
								</td>
							</tr>
							<tr>
								<td width="42%" align="right" height="50" >
									出售票数：&nbsp;&nbsp;&nbsp;
								</td>
								<td align="left">
									<input name="flightArrange.ticketsNum" id="ticketsNum" type="text"
										size="20" style="width:150px; height:26px;" />
								</td>
							</tr>
							
							<tr>
								<td width="42%" align="left">
									
								</td>
								<td align="left">
								    <input type="submit" name="post" style="width: 60" value="提交" />
								     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
									<input type="reset" name="reset" style="width: 60" value="重置" />
								</td>
							</tr>
					
							
							</table>
				  	</form>
				  </td>
				</tr>
	</table>
  </body>
  <script type="text/javascript">
	Calendar.setup( {
		inputField : "flightarrange.startDate",
		ifFormat : "%Y-%m-%d %H:%M",
		showsTime : "true",
		button : "flightarrange.startDate",
		step : 1
	});
</script>
</html>
